package emotion_codesoe_com

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type OsBannerRouter struct {
}

// InitOsBannerRouter 初始化 osBanner表 路由信息
func (s *OsBannerRouter) InitOsBannerRouter(Router *gin.RouterGroup, RouterPub *gin.RouterGroup) {
	osBannerRouter := Router.Group("osBanner").Use(middleware.OperationRecord())
	osBannerRouterWithoutRecord := Router.Group("osBanner")
	apiPublicOsBannerRouterWithoutRecord := RouterPub.Group("osBanner")
	var osBannerApi = v1.ApiGroupApp.Emotion_codesoe_comApiGroup.OsBannerApi
	{
		osBannerRouter.POST("createOsBanner", osBannerApi.CreateOsBanner)             // 新建osBanner表
		osBannerRouter.DELETE("deleteOsBanner", osBannerApi.DeleteOsBanner)           // 删除osBanner表
		osBannerRouter.DELETE("deleteOsBannerByIds", osBannerApi.DeleteOsBannerByIds) // 批量删除osBanner表
		osBannerRouter.PUT("updateOsBanner", osBannerApi.UpdateOsBanner)              // 更新osBanner表
	}
	{
		osBannerRouterWithoutRecord.GET("findOsBanner", osBannerApi.FindOsBanner)                // 根据ID获取osBanner表
		osBannerRouterWithoutRecord.GET("getOsBannerListPage", osBannerApi.GetOsBannerListPage)  // 获取osBanner表列表
		apiPublicOsBannerRouterWithoutRecord.GET("getOsBannerList", osBannerApi.GetOsBannerList) // 获取osBanner表列表
	}
}
